home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!ozzy.demon.co.uk
- From: Brian Skreeg <oz@ozzy.demon.co.uk>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Timing stuff
- Date: Fri, 5 Apr 96 22:29:27 GMT
- Organization: Fish Technologies Ltd.
- Message-ID: <9604052229.AA003y2@ozzy.demon.co.uk>
- References: <9604012043.AA003vp@ozzy.demon.co.uk> <4jsinv$9mi@senator-bedfellow.MIT.EDU> <1996Apr4.123716.19422@imada.ou.dk>
- X-NNTP-Posting-Host: ozzy.demon.co.uk
- X-Newsreader: TIN [version 1.2 PL3]
- X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!ozzy.demon.co.uk
-
- While smelling of fish Bjorn Reese (breese@imada.ou.dk) wrote:
-
- : You may reconsider asking for ops at a certain interval as it's
- : really annoying if there's huge lag (the bot gets ops but doesn't
- : discover it until several minutes later and floods the channel with
- : op requests.) I'd rather suggest that it asks if it receives a
- : ERR_CHANOPRIVSNEEDED.
-
- Cheers mate, very helpful.
-
- Unfortunatly, I've noticed a strange characteristic in the way I've done
- this bot. I've used fopen(ircfp,"tcp:irc.demon.co.uk/6667","a+") to open
- the connection to irc. I'm also using fgets() to read a line of this file
- when the server dumps something in it. Then I parse it and so on.
- Thing is, when I call fgets() and there is no new msg's waiting for my
- bot, fgets() doesn't return an error or anything. It just sits refusing to
- return until the server chucks something at it. Very strange.
- This the versh 2 of my bot and versh 1 never did this . Can't remember
- how I did it before either and I lost all source in a nasty HD error. :(
-
- __ _ _
- / \ \ \
- / / / / / |-Brian Skreeg--------IRC:_Ozzy-|
- \__/ \ \ |-Fish Technologies Ltd---------|
- \__/_/ |-Evolving software specialists-|
-